
Ext.define('DCApp.view.payfactor.List', {
    extend: 'Ext.grid.Panel',
    alias: 'widget.payfactorlist',
    
    requires: [
        'DCApp.view.pay.ListModel',
        'DCApp.controller.ListController'
    ],

    // Connects to our View Controller (Ticket.view.ticket.SearchController) and View Model
    // (Ticket.view.ticket.SearchModel).
    controller: 'list',
    plugins: ['gfilters'],
    viewModel: {
        type: 'payfactorlist'
    },
    header:false,
    selType: 'cellmodel',
    bind: {
        store: '{objs}'
    },
    
    tbar: ['->',{
        text: '录入',
        handler: 'onNew'
    }],
    
	
	listeners: {
        itemdblclick: 'onDblClick'
    },
    
    columns: [
            {
                text     : '编号',
                dataIndex: 'id'
            },
            {
                text     : '稿酬系数',
                dataIndex: 'payFactor',
                filter: {
                    type: 'string',
                    itemDefaults: {
                        emptyText: 'Search for...'
                    }
                }
            },
            {
                text     : '分类',
                dataIndex: 'type'
            },
            {
                text     : '规则表达式',
				dataIndex: 'expressions'
            },
            {
                text     : '备注',
                dataIndex: 'notes'
            }
            
        ],
    initComponent: function(){
    	this.callParent();
    }
 });
